package com.wanmait.zaisousuo.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.zaisousuo.pojo.ArticleCollect;
import com.wanmait.zaisousuo.service.ArticleCollectService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wanmait.zaisousuo.mapper.ArticleCollectMapper;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ArticleCollectServiceImpl implements ArticleCollectService {

    @Resource
    private ArticleCollectMapper articleCollectMapper;


    @Override
    public void insert(ArticleCollect object) {

    }

    @Override
    public void update(ArticleCollect object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public ArticleCollect findById(Integer id) {
        return null;
    }

    @Override
    public List<ArticleCollect> findAll() {
        return null;
    }

    @Override
    public List<ArticleCollect> findAll(ArticleCollect object) {
        return null;
    }

    @Override
    public int getDataCount() {
        return 0;
    }

    @Override
    public int getDataCount(ArticleCollect object) {
        return 0;
    }

    @Override
    public PageInfo<ArticleCollect> findList(int pageNum) {
        return null;
    }


    //添加收藏信息
    @Override
    public void insertCollects(List<ArticleCollect> articleCollects) {
        articleCollectMapper.insertCollects(articleCollects);
    }

    //删除收藏信息
    @Override
    public void deleteCollects(List<ArticleCollect> articleCollects) {
        articleCollectMapper.deleteCollects(articleCollects);
    }


}
